Skip to content

Java port: add photo reader, library docs, example, pom - #11

Open
avishorwork-wq wants to merge 1 commit into
mainfrom
ports-java-reader
Open

avishorwork-wq wants to merge 1 commit into
mainfrom
ports-java-reader

Conversation

@avishorwork-wq

@avishorwork-wq avishorwork-wq commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Adds the photo reader to the Java port and tidies the port for use.

  • src/PrismReader.java: reader (detection, hypothesis search, Reed-Solomon and distance-fit recovery, page retry chain). JDK only.
  • README with install, a short encode/decode example, API reference, reader usage and license note; examples/EncodeDecode.java; pom.xml metadata.
  • Fixes the build: the class was renamed to Comb but the file (Prism.java) and the CLI still used the old name, so the port did not compile. Now src/Comb.java.
  • Reader dev-only code removed (batch runner, deadline hooks that were off by default). No change to encoder/decoder or reader behavior.

Checks: javac builds src/*.java and the example; the example round-trips; CLI encode/decode works. Reader output is byte-identical to the previous reader source on 10 sampled bench scenes. The reader gave 0 wrong payloads on the 23 scenes of the full-kit run that fit the time available; the earlier full-kit count for this reader was 729 of 772, 0 wrong (from the original port work, not re-run here: a full pass takes hours on this reader).
Known limits (stated in the README): no dd, pq or veil recovery variants; no wall-clock cap. pom.xml is not build-tested (no Maven available here).

Sample run (not a full gate): every 8th bench scene, 97 of 772, run one at a time with a 40 s limit per scene: 92 read with the expected payload, 5 did not finish within the limit, 0 wrong payloads. A full 772 pass was not run.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant